package com.best.onegous.details;


import java.util.ArrayList;
import java.util.List;

import com.best.onegous.BaseActivity;
import com.best.onegous.R;
import com.best.onegous.Adapter.AddressAdapter;
import com.best.onegous.Adapter.PopularAdapter;
import com.best.onegous.Adapter.WishAdapter;
import com.best.onegous.Refresh.XListView;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.GridView;
import android.widget.ListView;

public class Searchone  extends BaseActivity implements OnClickListener{
	//private TextView sousuo;
	private Intent intent;
	 private GridView popularGirdView;
	 private PopularAdapter popularAdapter;
	 private List<String> mDatas = new ArrayList<String>();
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setThem(R.layout.searchone_activity);
		findViewById(R.id.back).setOnClickListener(this);
		findViewById(R.id.sousuo).setOnClickListener(this);
		popularGirdView = (GridView)findViewById(R.id.popularGirdView);
		for (int i = 0; i < 3; i++) {
			mDatas.add("haha"+i);
		}
		popularAdapter = new PopularAdapter(this,mDatas);
	    popularGirdView.setAdapter(popularAdapter);

	}
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		switch (v.getId()) {
		case R.id.back:
			 finish();
			break;
		case R.id.sousuo:
			intent = new Intent(this,HoneSearch.class);
			startActivity(intent);
			break;

		}
	}
}
